<template>
	<div>
		<NewActivitieCoupons :couponsCode="list" :copolddataobj='copolddatacup' :couponsid="couponsid"></NewActivitieCoupons>
		<div v-if="list.length==0 && env === 'edit'" style="height: 2.5rem;line-height: 2.5rem;">请配置优惠券数据</div>
	</div>
</template>

<script>
	import NewActivitieCoupons from "../../../real-components/NewActivitieCoupons";
	export default {
		props: {
			list: {
				type: Array,
				default: () => []
			},
			couponsid: {
				type: String,
				default: ""
			},
			copolddata:{
				type: Object,
				default: {}
			}
		},
		data() {
			return {
				copolddatacup:{}
			}
		},
		computed: {
			env() {
				return window.environment; // 获取是否是编辑状态
			},
		},
		components: {
			NewActivitieCoupons,
		},
		methods: {
			
		},
		created() {
			
		},
		watch:{
			copolddata(data){
				this.copolddatacup = data
			}
		},
		mounted() {
			
		}
	}
</script>

<style>
</style>